package openbang.account.service.entity;


import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import openbang.common.vo.StatusEnum;

import com.google.gwt.user.client.rpc.IsSerializable;

import java.util.Date;


/**
 * 银行账户
 * 开户行
 * 帐号
 * 开户名
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class BankAccount implements IsSerializable {
	public static final String DefaultFacePhoto = "face photo";  

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private String bankName;

	@Persistent
	private String bankNum;

	@Persistent
	private String userName;
	
	@Persistent
	private Integer status=StatusEnum.PENDING_VERIFY.getCode();
	
	@Persistent
	private Date creation=new Date();

	@Persistent
	private Date updTime= new Date();

    public BankAccount() {
    }

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getBankNum() {
		return bankNum;
	}

	public void setBankNum(String bankNum) {
		this.bankNum = bankNum;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreation() {
		return creation;
	}

	public void setCreation(Date creation) {
		this.creation = creation;
	}

	public Date getUpdTime() {
		return updTime;
	}

	public void setUpdTime(Date updTime) {
		this.updTime = updTime;
	}


}